package com.neutech.running;

import com.neutech.base.Constant;
import com.neutech.base.Sprite;
import org.w3c.dom.css.Rect;

import java.awt.Rectangle;


public abstract class Pencil extends Sprite {
    public void move(){
        setX(getX()-2);
        if(getX() <= 0 - getWidth()){
            Constant.gameFrame.pencilList.remove(this);
        }
    }
    public Rectangle createRectangle(){
        return new Rectangle(getX(),getY(),getWidth(),getHeight());
    }


}

